/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package filesecurity;

import java.io.Serializable;
import java.security.PublicKey;

/**
 *
 * @author lehoangkhanh
 */
public class User implements Serializable{
    private String email;
    private String hoTen;
    private String ngaySinh;
    private String dienThoai;
    private String diaChi;
    private PublicKey publicKey;
    public int keyLength;
    private byte[] encryptedPrivateKey;
    private byte[] hashPassPhrase;
    private byte[] saltPassPhrase;


    public User(){
        email = new String();
        hoTen = new String();
        ngaySinh = new String();
        dienThoai = new String();
        diaChi = new String();
    }

    public byte[] getHashPassPhrase() {
        return hashPassPhrase;
    }

    public void setHashPassPhrase(byte[] hashPassPhrase) {
        this.hashPassPhrase = hashPassPhrase;
    }

    public byte[] getSaltPassPhrase() {
        return saltPassPhrase;
    }

    public void setSaltPassPhrase(byte[] saltPassPhrase) {
        this.saltPassPhrase = saltPassPhrase;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setHoTen(String hoTen) {
        this.hoTen = hoTen;
    }

    public void setNgaySinh(String ngaySinh) {
        this.ngaySinh = ngaySinh;
    }

    public void setDienThoai(String dienThoai) {
        this.dienThoai = dienThoai;
    }

    public void setDiaChi(String diaChi) {
        this.diaChi = diaChi;
    }

    public void setPublicKey(PublicKey publicKey) {
        this.publicKey = publicKey;
    }

    public void setEncryptedPrivateKey(byte[] encryptedPrivateKey) {
        this.encryptedPrivateKey = encryptedPrivateKey;
    }

    public int getKeyLength() {
        return keyLength;
    }

    public void setKeyLength(int keyLength) {
        this.keyLength = keyLength;
    }

    public String getEmail() {
        return email;
    }

    public String getHoTen() {
        return hoTen;
    }

    public String getNgaySinh() {
        return ngaySinh;
    }

    public String getDienThoai() {
        return dienThoai;
    }

    public String getDiaChi() {
        return diaChi;
    }

    public PublicKey getPublicKey() {
        return publicKey;
    }

    public byte[] getEncryptedPrivateKey() {
        return encryptedPrivateKey;
    }
}
